﻿<cftry>  
	

<cfinvoke 
			method="submitexitinterviewform" 
		    component="exitinterview"
			returnvariable="processresult"
		    processkey="answerable"
		    
>



<cfif len(processresult) EQ 10>
		<cfoutput>
		{
		"success": "true", 
		"form": [{
				"detail":"#processresult#", 
				"message":"empty"
			}]
		}	
		</cfoutput>
<cfelseif processresult EQ "recordalreadyexist">
		<cfoutput>
		{
		"form": [{
				"detail": " >> ", 
				"message": "Record already exist"
			}]
		}	
		</cfoutput>
<cfelse>
	<cfoutput>
	{
	"form": [{
			"detail":"There is a problem in saving the exit interview form. Please try again.", 
			"message":"empty"
		}]
	}	
	</cfoutput>
</cfif>


	<cfcatch>
		<cfoutput>
		{
		"form": [{
				"detail":"#cfcatch.Detail#", 
				"message":"#cfcatch.Message#"
			}]
		}
			
		</cfoutput>
		
	</cfcatch>

</cftry>

<cfsetting showdebugoutput="no" >